import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)


import Index from '@/pages/Index'
import Customer from '@/pages/Customer'
import TaskPool from'@/pages/task/TaskPool'
import WillTask from'@/pages/task/WillTask'
import BeTask from'@/pages/task/BeTask'
import Rule from'@/pages/task/Rule'
import Money from '@/pages/Money'

import ServiceTask from '@/pages/task/ServiceTask'

export default new Router({
  routes: [
    { path: '/', component: Index, meta: { title: "首页" } },
    { path: '/customer', component: Customer, meta: { title: "客服人员管理" } },
    { path: '/taskpool', component: TaskPool, meta: { title: "任务池管理" } },
    { path: '/willtask', component: WillTask, meta: { title: "待分配任务" } },
    { path: '/betask', component: BeTask, meta: { title: "已分配任务" } },
    { path: '/rule', component: Rule, meta: { title: "分配规则" } },
    { path: '/money', component: Money, meta: { title: "提成管理" } },
    { path: '/service/task', component: ServiceTask, meta: { title: "客服任务列表" } },
  ]
})
